from get import *

def transactions(acctids,dtstart,dtend):
    items={}
    gettransactions(items,acctids,dtstart,dtend)
    # add information on assets
    uniqueids=set(o['UNIQUEID'][0]
                  for o in items.itervalues()
                  if 'UNIQUEID' in o) # get all uniqueids in use
    getassets(items,uniqueids)
    return items.values()
